package cn.njxzc.examples;

import java.util.HashSet;

public class Exam8_2 {

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public static void main(String[] args) {
		HashSet s = new HashSet();
		for (int i = 0; i < args.length; i++)
			if (!s.add(args[i]))
				System.out.println("重复的单词: " + args[i]);
		System.out.println("s 的大小：" + s.size() + ";" + " 不同的单词: " + s);
		System.out.println(args[0]);
		s.remove(args[0]);
		System.out.println(s);
		if (!s.contains(args[1])) {
			System.out.println("此set中不包含" + args[1] + "字符");
		} else {
			System.out.println("此set中包含" + args[1] + "字符");
		}
	}

}
